﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class TinTuc : System.Web.UI.Page
{
    QLTinTuc tt = new QLTinTuc();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack == false)
        {
            DataList1.DataSource = tt.Load_TinTuc();
            DataList1.DataBind();
        }
    }
    protected void DataList1_ItemCommand(object source, DataListCommandEventArgs e)
    {
        string matt = e.CommandArgument.ToString();
        Session["matt"] = matt;
        Response.Redirect("~/ChiTietTinTuc.aspx");
    }
}
